<template>
  <div>
    <div class="detail">
      <h2>{{Detail.title}}</h2>
      <hr>
      <div class="context" v-html="Detail.content"></div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      Detail: {}
    };
  },
  mounted() {
    this.getDetail();
  },
  methods: {
    async getDetail() {
      const { data: res } = await this.$http.get(
        "/api/goods/getdesc/" + this.$route.params.id
      );
      this.Detail = res.message[0];
    }
  }
};
</script>
<style lang='less' scoped>
.detail {
  padding: 10px 10px 60px;
  h2 {
    text-align: center;
    color: #26a2ff;
    font-size: 16px;
    margin-top: 50px;
    margin: 0;
    padding: 0;
  }
  .context {
    font-size: 14px;
    line-height: 26px;
    color: #4a4a4b;
    overflow: hidden;
  }
}
</style>